var ThreeScene=ThreeScene||{};
ThreeScene.ThreeScene=function(){
	var s = this;
	F2xContainer.call(s);
	s.initUI();
    CountS.stopTime();

    //播放动画
    s.RootMC.addEventListener(annie.MouseEvent.MOUSE_DOWN,function () {
        s.RootMC.play();
        CountS.runTime(1);
    });
    //暂停动画
    s.RootMC.addEventListener(annie.MouseEvent.MOUSE_UP,function () {
        s.RootMC.stop();
        CountS.stopTime();
    });
	s.RootMC.addEventListener(annie.Event.END_FRAME,function () {
		s.nextScene();
    })
    // s.RootMC.addEventListener(annie.MouseEvent.CLICK,function () {
    //     s.nextScene();
    // })
};
F2xExtend(ThreeScene.ThreeScene,F2xContainer);
ThreeScene.ThreeScene.prototype.nextScene=function () {
	var s = this;
    RootStage.addChild(new FourScene.FourScene());
    CountS.resetTime();
    CountS.RootMC.visible=false;
    CountS.musicBtn.visible=false;
    BgOne.pause();
    RootStage.removeChild(s);
}
ThreeScene.ThreeScene.prototype.initUI=function(){
	var s = this;
	//f2x_auto_created_init_start
	var _d0=new ThreeScene.F2xAuto_11();
	_d0.name="RootMC";
	s.RootMC=_d0;
	Flash2x.d(_d0,{x:-55.5});
	s.addChild(_d0);
	//f2x_auto_created_init_end
	
};
